home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
os2
/
pmf300.zip
/
PMFLOPPY.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-06
|
2KB
|
67 lines
/*
pmfloppy.h
headers for pmfloppy.c
G. Bryant, 1990,1993
Delta Music Systems
Released to the public domain
Change Log
5-Feb-93 Port to OS/2 2.0-C Set/2
*/
#ifndef PMFLOPPY_H
#define PMFLOPPY_H
#define NUM_IMAGES 20
#define NUM_THREADS 5
#define MAXMSGLEN 127
#define STACK_SIZE 4096
#define MAX_SEG 65536
#define READ_SOURCE 1
#define COPY_TARGET 2
#define EXIT_DSKCPY -1
#define DSKIM_ERROR_WRONG_FORMAT 0xffbf
#define DSKIM_ERROR_WRONG_FILE 0xffc0
#define BUFSIZE 1024
#define OPENFLAGS (OPEN_FLAGS_DASD | OPEN_SHARE_DENYREADWRITE | OPEN_ACCESS_READWRITE | OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_SEQUENTIAL)
// Resource IDs
#define IDR_PMFLOPPY 1
// Menu IDs
#define IDM_DISK_MENU 2050
#define IDM_READ 2052
#define IDM_WRITE 2053
#define IDM_ABOUT 2054
#define IDM_LOAD 2055
#define IDM_SAVE 2056
#define IDM_DELETE 2057
#define IDM_COMP 2058
// Dialog IDs
#include "copydlgs.h"
// Local messages
#define UM_ERROR WM_USER + 0
#define UM_STATUS WM_USER + 1
#define UM_DONE WM_USER + 2
#define UM_COMPOK WM_USER + 3
#define UM_COMPERR WM_USER + 4
typedef struct _ThreadContext {
TID ThID; // Thread ID for the subprocess
SEL selStk; // stack selector for subprocess
USHORT ImageNumber; // Image number this thread is using
USHORT CompNumber; // Image number compare is using
ULONG ErrorCode; // Fatal Error generated on thread
} ThreadContext;
#endif